package pl.edu.agh.abd.hsmest;

public abstract class Event implements Comparable<Event> {

	protected final long finishTime;
	
	protected Event(long time) {
	
		this.finishTime = time;
	}	
	
	public long getFinishTime() {
		return finishTime;
	}
	
	@Override
	public int compareTo(Event o) {

		return Long.valueOf(this.finishTime - o.finishTime).intValue();
	}

	
	
}
